Optimal. Leaf size=86 \[ -\frac {14 a \cos (c+d x)}{15 d \sqrt {a+a \sin (c+d x)}}+\frac {4 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{15 d}-\frac {2 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{5 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2838, 2830,
2725} \begin {gather*} -\frac {2 \cos (c+d x) (a \sin (c+d x)+a)^{3/2}}{5 a d}+\frac {4 \cos (c+d x) \sqrt {a \sin (c+d x)+a}}{15 d}-\frac {14 a \cos (c+d x)}{15 d \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2830
Rule 2838
Rubi steps
\begin {align*} \int \sin ^2(c+d x) \sqrt {a+a \sin (c+d x)} \, dx &=-\frac {2 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{5 a d}+\frac {2 \int \left (\frac {3 a}{2}-a \sin (c+d x)\right ) \sqrt {a+a \sin (c+d x)} \, dx}{5 a}\\ &=\frac {4 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{15 d}-\frac {2 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{5 a d}+\frac {7}{15} \int \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {14 a \cos (c+d x)}{15 d \sqrt {a+a \sin (c+d x)}}+\frac {4 \cos (c+d x) \sqrt {a+a \sin (c+d x)}}{15 d}-\frac {2 \cos (c+d x) (a+a \sin (c+d x))^{3/2}}{5 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 117, normalized size = 1.36 \begin {gather*} -\frac {\sqrt {a (1+\sin (c+d x))} \left (30 \cos \left (\frac {1}{2} (c+d x)\right )+5 \cos \left (\frac {3}{2} (c+d x)\right )-3 \cos \left (\frac {5}{2} (c+d x)\right )-30 \sin \left (\frac {1}{2} (c+d x)\right )+5 \sin \left (\frac {3}{2} (c+d x)\right )+3 \sin \left (\frac {5}{2} (c+d x)\right )\right )}{30 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.70, size = 63, normalized size = 0.73
method | result | size |
default | \(\frac {2 \left (1+\sin \left (d x +c \right )\right ) a \left (\sin \left (d x +c \right )-1\right ) \left (3 \left (\sin ^{2}\left (d x +c \right )\right )+4 \sin \left (d x +c \right )+8\right )}{15 \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 92, normalized size = 1.07 \begin {gather*} \frac {2 \, {\left (3 \, \cos \left (d x + c\right )^{3} - \cos \left (d x + c\right )^{2} - {\left (3 \, \cos \left (d x + c\right )^{2} + 4 \, \cos \left (d x + c\right ) - 7\right )} \sin \left (d x + c\right ) - 11 \, \cos \left (d x + c\right ) - 7\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{15 \, {\left (d \cos \left (d x + c\right ) + d \sin \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\sin {\left (c + d x \right )} + 1\right )} \sin ^{2}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.57, size = 93, normalized size = 1.08 \begin {gather*} \frac {\sqrt {2} {\left (30 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 5 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 3 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {5}{4} \, \pi + \frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )} \sqrt {a}}{30 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\sin \left (c+d\,x\right )}^2\,\sqrt {a+a\,\sin \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________